home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Speccy ClassiX 1998
/
Speccy ClassiX 98.iso
/
amiga_system
/
the_aminet
/
dev
/
gcc
/
ixemulsrc.lha
/
ixemul-41.4
/
library
/
inet.h
< prev
next >
Wrap
Text File
|
1995-09-27
|
5KB
|
244 lines
#define __inline
static __inline void
IN_socket (void *inetbase, void *arg)
{
register void *a6 asm("a6") = inetbase;
register void *d1 asm("d1") = arg;
__asm __volatile ("jsr a6@(-30)"
: "=g" (arg)
: "r" (a6), "r" (d1)
: "a0", "a1", "d0", "d1", "memory");
*(char*)d1=*(char*)d1;
}
static __inline void
IN_bind (void *inetbase, void *arg)
{
register void *a6 asm("a6") = inetbase;
register void *d1 asm("d1") = arg;
__asm __volatile ("jsr a6@(-36)"
: "=g" (arg)
: "r" (a6), "r" (d1)
: "a0", "a1", "d0", "d1", "memory");
*(char*)d1=*(char*)d1;
}
static __inline void
IN_ioctl (void *inetbase, void *arg)
{
register void *a6 asm("a6") = inetbase;
register void *d1 asm("d1") = arg;
__asm __volatile ("jsr a6@(-42)"
: "=g" (arg)
: "r" (a6), "r" (d1)
: "a0", "a1", "d0", "d1", "memory");
*(char*)d1=*(char*)d1;
}
static __inline void
IN_listen (void *inetbase, void *arg)
{
register void *a6 asm("a6") = inetbase;
register void *d1 asm("d1") = arg;
__asm __volatile ("jsr a6@(-48)"
: "=g" (arg)
: "r" (a6), "r" (d1)
: "a0", "a1", "d0", "d1", "memory");
*(char*)d1=*(char*)d1;
}
static __inline void
IN_accept (void *inetbase, void *arg)
{
register void *a6 asm("a6") = inetbase;
register void *d1 asm("d1") = arg;
__asm __volatile ("jsr a6@(-54)"
: "=g" (arg)
: "r" (a6), "r" (d1)
: "a0", "a1", "d0", "d1", "memory");
*(char*)d1=*(char*)d1;
}
static __inline void
IN_connect (void *inetbase, void *arg)
{
register void *a6 asm("a6") = inetbase;
register void *d1 asm("d1") = arg;
__asm __volatile ("jsr a6@(-60)"
: "=g" (arg)
: "r" (a6), "r" (d1)
: "a0", "a1", "d0", "d1", "memory");
*(char*)d1=*(char*)d1;
}
static __inline void
IN_sendto (void *inetbase, void *arg)
{
register void *a6 asm("a6") = inetbase;
register void *d1 asm("d1") = arg;
__asm __volatile ("jsr a6@(-66)"
: "=g" (arg)
: "r" (a6), "r" (d1)
: "a0", "a1", "d0", "d1", "memory");
*(char*)d1=*(char*)d1;
}
static __inline void
IN_send (void *inetbase, void *arg)
{
register void *a6 asm("a6") = inetbase;
register void *d1 asm("d1") = arg;
__asm __volatile ("jsr a6@(-72)"
: "=g" (arg)
: "r" (a6), "r" (d1)
: "a0", "a1", "d0", "d1", "memory");
*(char*)d1=*(char*)d1;
}
static __inline void
IN_sendmsg (void *inetbase, void *arg)
{
register void *a6 asm("a6") = inetbase;
register void *d1 asm("d1") = arg;
__asm __volatile ("jsr a6@(-78)"
: "=g" (arg)
: "r" (a6), "r" (d1)
: "a0", "a1", "d0", "d1", "memory");
*(char*)d1=*(char*)d1;
}
static __inline void
IN_recvfrom (void *inetbase, void *arg)
{
register void *a6 asm("a6") = inetbase;
register void *d1 asm("d1") = arg;
__asm __volatile ("jsr a6@(-84)"
: "=g" (arg)
: "r" (a6), "r" (d1)
: "a0", "a1", "d0", "d1", "memory");
*(char*)d1=*(char*)d1;
}
static __inline void
IN_recv (void *inetbase, void *arg)
{
register void *a6 asm("a6") = inetbase;
register void *d1 asm("d1") = arg;
__asm __volatile ("jsr a6@(-90)"
: "=g" (arg)
: "r" (a6), "r" (d1)
: "a0", "a1", "d0", "d1", "memory");
*(char*)d1=*(char*)d1;
}
static __inline void
IN_recvmsg (void *inetbase, void *arg)
{
register void *a6 asm("a6") = inetbase;
register void *d1 asm("d1") = arg;
__asm __volatile ("jsr a6@(-96)"
: "=g" (arg)
: "r" (a6), "r" (d1)
: "a0", "a1", "d0", "d1", "memory");
*(char*)d1=*(char*)d1;
}
static __inline void
IN_shutdown (void *inetbase, void *arg)
{
register void *a6 asm("a6") = inetbase;
register void *d1 asm("d1") = arg;
__asm __volatile ("jsr a6@(-102)"
: "=g" (arg)
: "r" (a6), "r" (d1)
: "a0", "a1", "d0", "d1", "memory");
*(char*)d1=*(char*)d1;
}
static __inline void
IN_setsockopt (void *inetbase, void *arg)
{
register void *a6 asm("a6") = inetbase;
register void *d1 asm("d1") = arg;
__asm __volatile ("jsr a6@(-108)"
: "=g" (arg)
: "r" (a6), "r" (d1)
: "a0", "a1", "d0", "d1", "memory");
*(char*)d1=*(char*)d1;
}
static __inline void
IN_getsockopt (void *inetbase, void *arg)
{
register void *a6 asm("a6") = inetbase;
register void *d1 asm("d1") = arg;
__asm __volatile ("jsr a6@(-114)"
: "=g" (arg)
: "r" (a6), "r" (d1)
: "a0", "a1", "d0", "d1", "memory");
*(char*)d1=*(char*)d1;
}
static __inline void
IN_getsockname (void *inetbase, void *arg)
{
register void *a6 asm("a6") = inetbase;
register void *d1 asm("d1") = arg;
__asm __volatile ("jsr a6@(-120)"
: "=g" (arg)
: "r" (a6), "r" (d1)
: "a0", "a1", "d0", "d1", "memory");
*(char*)d1=*(char*)d1;
}
static __inline void
IN_getpeername (void *inetbase, void *arg)
{
register void *a6 asm("a6") = inetbase;
register void *d1 asm("d1") = arg;
__asm __volatile ("jsr a6@(-126)"
: "=g" (arg)
: "r" (a6), "r" (d1)
: "a0", "a1", "d0", "d1", "memory");
*(char*)d1=*(char*)d1;
}
static __inline void
IN_select (void *inetbase, void *arg)
{
register void *a6 asm("a6") = inetbase;
register void *d1 asm("d1") = arg;
__asm __volatile ("jsr a6@(-132)"
: "=g" (arg)
: "r" (a6), "r" (d1)
: "a0", "a1", "d0", "d1", "memory");
*(char*)d1=*(char*)d1;
}
static __inline void
IN_close (void *inetbase, void *arg)
{
register void *a6 asm("a6") = inetbase;
register void *d1 asm("d1") = arg;
__asm __volatile ("jsr a6@(-138)"
: "=g" (arg)
: "r" (a6), "r" (d1)
: "a0", "a1", "d0", "d1", "memory");
*(char*)d1=*(char*)d1;
}
static __inline void
IN_inherit (void *inetbase, void *arg)
{
register void *a6 asm("a6") = inetbase;
register void *d1 asm("d1") = arg;
__asm __volatile ("jsr a6@(-144)"
: "=g" (arg)
: "r" (a6), "r" (d1)
: "a0", "a1", "d0", "d1", "memory");
*(char*)d1=*(char*)d1;
}
#undef __inline